#include "qsize.h"

qsize_t Qui::QSize::get_x()
{
	return x;
}
qsize_t Qui::QSize::get_y()
{
	return y;
}
qsize_t Qui::QSize::get_width()
{
	return width;
}
qsize_t Qui::QSize::get_height()
{
	return height;
}

qsize_t Qui::QSize::set_x(qsize_t new_value)
{
	x = new_value;

	return x;
}
qsize_t Qui::QSize::set_y(qsize_t new_value)
{
	y = new_value;

	return y;
}
qsize_t Qui::QSize::set_width(qsize_t new_value)
{
	width = new_value;

	return width;
}
qsize_t Qui::QSize::set_height(qsize_t new_value)
{
	height = new_value;

	return height;
}

Qui::QSize_t Qui::QSize::get_size()
{
	QSize_t temp;

	temp.x = x;
	temp.y = y;

	temp.width  = width;
	temp.height = height;

	return temp;
}

QNamespaceStart(Qui)

QGeomtery_t QSize2QGemotery(QSize_t size_t)
{
	return QGeomtery_t{ size_t.x, size_t.y,
						size_t.x + size_t.width, size_t.y + size_t.height };
}

QNamespaceEnd